babl: drop long return from conversion funcs
authorØyvind Kolås <pippin@gimp.org>
Thu, 7 Sep 2017 13:48:13 +0000 (15:48 +0200)
committerØyvind Kolås <pippin@gimp.org>
Thu, 7 Sep 2017 13:48:16 +0000 (15:48 +0200)
commit34b25ce6b5f77443aa347c48e779cea52d7acc42
tree30ccd050f2e013fee288585dbd8c3d48f4da17bc
parentb5972c2330efdf97ec6129903b369ed4427b6498
babl: drop long return from conversion funcs

They are propagated and instructions are spent on that, but their value are
never used. Some conversion functions in base even used the argument passed for
counting down to 0 and return 0 instead, to no ill effect.

Since we do not currently see external babl extensions, we can break extensions
API without bumping the library version, this is even a change where due to
varargs, old extensions will continue working until migrated.
14 files changed:
babl/babl-conversion.c
babl/babl-conversion.h
babl/babl-palette.c
babl/babl-space.c
babl/babl-types.h
babl/base/model-gray.c
babl/base/model-rgb.c
babl/base/model-ycbcr.c
babl/base/type-float.c
babl/base/type-half.c
babl/base/type-u15.c
babl/base/type-u16.c
babl/base/type-u32.c
babl/base/type-u8.c